package org.jeecg.modules.networking.util;

import java.util.HashMap;
import java.util.Map;

public class FuelMapper {

    private static final Map<String, String> fuel = new HashMap<>();
    static {
        fuel.put("A", "A");//汽油
        fuel.put("B", "B");//柴油
        fuel.put("C", "C");//电
        fuel.put("D", "D");//天然气
        fuel.put("E", "E");//氢
        fuel.put("F", "F");//混合动力
        fuel.put("L", "K");//甲醇
        fuel.put("M", "J");//乙醇
        fuel.put("N", "H");//太阳能
        fuel.put("O", "F");//混合动力
        fuel.put("Y", "Z");//无
        fuel.put("Z", "Z");//其他
    }

    public static String getFuel(String fuelType) {
        return fuel.getOrDefault(fuelType, "Z");
    }

}
